package com.cc.service;

import com.cc.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author 铁憨憨
 * @date 2021/2/5 11:01
 */
@FeignClient("student")//指向服务提供者的application.name
public interface TeacherService {

    @GetMapping("getUserList")
    List<User> getUserList();

    @GetMapping("/getUserById/{id}")
    String getUserById(@PathVariable("id")Integer id);
}
